package com.yyj.log;

import org.springframework.aop.AfterReturningAdvice;

import java.lang.reflect.Method;

public class AfterLog implements AfterReturningAdvice {
    @Override
    public void afterReturning(Object returnValue, Method method, Object[] args, Object target) throws Throwable {
        System.out.println("我是afterlog"+target.getClass().getName()+"的"+method.getName()+"被执行了");
        System.out.println("返回结果为："+returnValue);
    }
}
